<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
  <title>用户分析</title>
  <link rel="stylesheet" href="./layui/css/layui.css">
  <link rel="stylesheet" type="text/css" href="css/base.css">
</head>
<body>
	<div class="layui-fluid" style="margin: 20px auto;">
	    <div class="layui-form">
	        <div class="layui-form-item">
	          <div class="layui-inline">
	            <label class="layui-form-label">性别</label>
	            <div class="layui-input-inline">
	              <input type="text" name="sex" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
	            </div>
	          </div>
	          <div class="layui-inline">
	            <label class="layui-form-label">签名</label>
	            <div class="layui-input-inline">
	              <input type="text" name="sign" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
	            </div>
	          </div>
	          <div class="layui-inline">
	            <label class="layui-form-label">评分</label>
	            <div class="layui-input-inline">
	              <input type="text" name="score" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
	            </div>
	          </div>
	        </div>
	        <div class="layui-form-item layui-hide">
		      <input type="button" lay-submit lay-filter="listform-submit" id="listform-submit" value="确认添加">
		    </div>
	    </div>
	</div>
	<script type="text/javascript" src="./layui/layui.js"></script>
	<script>
		var formSub='';
		layui.use(['jquery','form'], function(){
			var $=layui.jquery,form=layui.form;
			//监听提交
			formSub=function(){
		    	form.on('submit(listform-submit)', function(data){
			     	var index = parent.layer.getFrameIndex(window.name);
			      	parent.layer.close(index);
			    });
			};
		});
	</script> 
</body>
</html>